<?php
namespace App\Services\WechatHandler;

use \EasyWeChat\Kernel\Contracts\EventHandlerInterface;

/**
 * 音频消息处理器
 * @package App\WechatHandler
 */
class VoiceMessageHandler implements EventHandlerInterface
{
    /**
     * 消息处理
     * @param null $payload
     */
    public function handle($payload = null)
    {
        //消息异步保存到记录表
        \App\Jobs\WxmsgVoiceHandle::dispatch($payload)->onQueue('low');
        return new \EasyWeChat\Kernel\Messages\Voice('J4Lts5PORGpL8QWIAbTCNEd0fwRoGpq1aUgdO2TDIEvwOS8B6hgwnzaH8-fgZOya');
    }
}